package com.scala.test

object TestImplicit {
    def main(args: Array[String]): Unit = {
        class SignPen {
            def write(content: String) = println(content)
        }
        implicit val signPen = new SignPen

        def signForExam(name: String) (implicit signPen: SignPen) {
            signPen.write(name + " come to exam in time.")
        }
        signForExam("ni")
    }
}
